<!-- contents -->
<form name="frm_Yachinsouba" id="frm_Yachinsouba" method="post" action="/search/{$form_act}">
<!-- rentSelectTitle01 -->
<div id="rentSelectTitle01">
	<div class="selectedBlock">
		<p class="category">{if $SrhType==1}都道府県{else}沿線{/if}</p>
		<h2>{$PAR_NAME}</h2>
		{*<p class="btn"><a href="javascript:Research('1')"><img src="/images/search/common/btn_reselect.jpg" alt="選び直す" width="77" height="25" class="rollImg" /></a></p>*}
	</div>
</div>
<!-- /rentSelectTitle01 -->
<p class="searchAttTxt01">▼{if $SrhType==1}地域{else}駅{/if}の家賃相場を間取りごとに表示しています。</p>

<!-- rentSelectBtnBlock -->
<div id="rentSelectBtnBlock">
	<div class="btnBlock">
		<ul>
			{if $type == 1}
				<li><img src="/images/search/common/btn_category_all_o.jpg" alt="全体" width="95" height="28"/></li>
			{else}
				<li><a href="javascript:void(0)" onClick="javascript:ChangePage('1')" ><img src="/images/search/common/btn_category_all.jpg" alt="全体" width="95" height="28" class="rollImg"/></a></li>
			{/if}
			{if $type == 2}
				<li><img src="/images/search/common/btn_category_mansion_o.jpg" alt="賃貸マンション" width="122" height="28" /></li>
			{else}
				<li><a href="javascript:void(0)" onClick="javascript:ChangePage('2')" ><img src="/images/search/common/btn_category_mansion.jpg" alt="賃貸マンション" width="122" height="28" class="rollImg" /></a></li>
			{/if}
			{if $type == 3}
				<li><img src="/images/search/common/btn_category_apart_o.jpg" alt="賃貸アパート" width="122" height="28" /></li>
			{else}
				<li><a href="javascript:void(0)" onClick="javascript:ChangePage('3')"><img src="/images/search/common/btn_category_apart.jpg" alt="賃貸アパート" width="122" height="28" class="rollImg" /></a></li>
			{/if}
			{if $type == 4}
				<li><img src="/images/search/common/btn_category_house_o.jpg" alt="借家・賃貸一戸建て" width="149" height="28" /></a></li>
			{else}
				<li><a href="javascript:void(0)" onClick="javascript:ChangePage('4')"><img src="/images/search/common/btn_category_house.jpg" alt="借家・賃貸一戸建て" width="149" height="28" class="rollImg" /></a></li>
			{/if}
		</ul>
	</div>
	<div class="iconBlock">
		<ul class="icon">
			<li class="first"><img src="/images/search/common/icon_low.gif" alt="最安値" width="59" height="24" /></li>
			<li class="last"><img src="/images/search/common/icon_high.gif" alt="最高値" width="59" height="24" /></li>
		</ul>
	</div>
	<p class="unit">単位：万円</p>
</div>
<!-- /rentSelectBtnBlock -->

<!-- rentMarketTbl01 -->
<div id="rentMarketTbl01">
	<table cellspacing="0">
		<tr>
			<th class="first">
			{if $sortKey == 0}
				{if $sortValue == 1}
					<a href="javascript:PriceSort(2,0)" class="selected">
				{else}
					<a href="javascript:PriceSort(1,0)" class="desc_selected">
				{/if}
			{else}
				<a href="javascript:PriceSort(1,0)" >
			{/if}
			{if $SrhType==1}地域{else}駅{/if}</a></th>

			<th>
			{if $sortKey == 1}
				{if $sortValue == 1}
					<a href="javascript:PriceSort(2,1)" class="selected">
				{else}
					<a href="javascript:PriceSort(1,1)" class="desc_selected">
				{/if}
			{else}
				<a href="javascript:PriceSort(1,1)" >
			{/if}
			1R</a></th>

			<th>
			{if $sortKey == 2}
				{if $sortValue == 1}
					<a href="javascript:PriceSort(2,2)" class="selected">
				{else}
					<a href="javascript:PriceSort(1,2)" class="desc_selected">
				{/if}
			{else}
				<a href="javascript:PriceSort(1,2)" >
			{/if}
			1K/1DK</a></th>

			<th>
			{if $sortKey == 3}
				{if $sortValue == 1}
					<a href="javascript:PriceSort(2,3)" class="selected">
				{else}
					<a href="javascript:PriceSort(1,3)" class="desc_selected">
				{/if}
			{else}
				<a href="javascript:PriceSort(1,3)" >
			{/if}
			1LDK</a></th>

			<th>
			{if $sortKey == 4}
				{if $sortValue == 1}
					<a href="javascript:PriceSort(2,4)" class="selected">
				{else}
					<a href="javascript:PriceSort(1,4)" class="desc_selected">
				{/if}
			{else}
				<a href="javascript:PriceSort(1,4)" >
			{/if}
			2K/2DK</a></th>

			<th>
			{if $sortKey == 5}
				{if $sortValue == 1}
					<a href="javascript:PriceSort(2,5)" class="selected">
				{else}
					<a href="javascript:PriceSort(1,5)" class="desc_selected">
				{/if}
			{else}
				<a href="javascript:PriceSort(1,5)" >
			{/if}
			2LDK</a></th>

			<th>
			{if $sortKey == 6}
				{if $sortValue == 1}
					<a href="javascript:PriceSort(2,6)" class="selected">
				{else}
					<a href="javascript:PriceSort(1,6)" class="desc_selected">
				{/if}
			{else}
				<a href="javascript:PriceSort(1,6)" >
			{/if}
			3K/3DK</a></th>

			<th>
			{if $sortKey == 7}
				{if $sortValue == 1}
					<a href="javascript:PriceSort(2,7)" class="selected">
				{else}
					<a href="javascript:PriceSort(1,7)" class="desc_selected">
				{/if}
			{else}
				<a href="javascript:PriceSort(1,7)" >
			{/if}
			3LDK</a></th>

			<th>
			{if $sortKey == 8}
				{if $sortValue == 1}
					<a href="javascript:PriceSort(2,8)" class="selected">
				{else}
					<a href="javascript:PriceSort(1,8)" class="desc_selected">
				{/if}
			{else}
				<a href="javascript:PriceSort(1,8)" >
			{/if}
			4K～</a></th>
		</tr>

		{foreach from=$yachinsouba item=record name=info key=KeyCd}
		<tr>
			<td class="station"><a href="javascript:DetailPage2({$SrhType},'{$KeyCd}','1','1','{$type}')">{$record.KEY_NAME}</a></td>
			{if $record.SOBA.1R.YACHIN_AVG == ""}
			<td>-</td>
			{else}
			<td {if $record.SOBA.1R.MIN_FLG == 1}class="lowest"{/if}{if $record.SOBA.1R.MAX_FLG == 1}class="highest"{/if}><a href="javascript:GoRstobi({$SrhType}, '{$KeyCd}', 1, {$type})">{$record.SOBA.1R.YACHIN_AVG}</a></td>
			{/if}
			{if $record.SOBA.1K.YACHIN_AVG == ""}
			<td>-</td>
			{else}
			<td {if $record.SOBA.1K.MIN_FLG == 1}class="lowest"{/if}{if $record.SOBA.1K.MAX_FLG == 1}class="highest"{/if}><a href="javascript:GoRstobi({$SrhType}, '{$KeyCd}', 2, {$type})">{$record.SOBA.1K.YACHIN_AVG}</a></td>
			{/if}
			{if $record.SOBA.1LDK.YACHIN_AVG == ""}
			<td>-</td>
			{else}
			<td {if $record.SOBA.1LDK.MIN_FLG == 1}class="lowest"{/if}{if $record.SOBA.1LDK.MAX_FLG == 1}class="highest"{/if}><a href="javascript:GoRstobi({$SrhType}, '{$KeyCd}', 3, {$type})">{$record.SOBA.1LDK.YACHIN_AVG}</a></td>
			{/if}
			{if $record.SOBA.2K.YACHIN_AVG == ""}
			<td>-</td>
			{else}
			<td {if $record.SOBA.2K.MIN_FLG == 1}class="lowest"{/if}{if $record.SOBA.2K.MAX_FLG == 1}class="highest"{/if}><a href="javascript:GoRstobi({$SrhType}, '{$KeyCd}', 4, {$type})">{$record.SOBA.2K.YACHIN_AVG}</a></td>
			{/if}
			{if $record.SOBA.2LDK.YACHIN_AVG == ""}
			<td>-</td>
			{else}
			<td {if $record.SOBA.2LDK.MIN_FLG == 1}class="lowest"{/if}{if $record.SOBA.2LDK.MAX_FLG == 1}class="highest"{/if}><a href="javascript:GoRstobi({$SrhType}, '{$KeyCd}', 5, {$type})">{$record.SOBA.2LDK.YACHIN_AVG}</a></td>
			{/if}
			{if $record.SOBA.3K.YACHIN_AVG == ""}
			<td>-</td>
			{else}
			<td {if $record.SOBA.3K.MIN_FLG == 1}class="lowest"{/if}{if $record.SOBA.3K.MAX_FLG == 1}class="highest"{/if}><a href="javascript:GoRstobi({$SrhType}, '{$KeyCd}', 6, {$type})">{$record.SOBA.3K.YACHIN_AVG}</a></td>
			{/if}
			{if $record.SOBA.3LDK.YACHIN_AVG == ""}
			<td>-</td>
			{else}
			<td {if $record.SOBA.3LDK.MIN_FLG == 1}class="lowest"{/if}{if $record.SOBA.3LDK.MAX_FLG == 1}class="highest"{/if}><a href="javascript:GoRstobi({$SrhType}, '{$KeyCd}', 7, {$type})">{$record.SOBA.3LDK.YACHIN_AVG}</a></td>
			{/if}
			{if $record.SOBA.4K.YACHIN_AVG == ""}
			<td>-</td>
			{else}
			<td {if $record.SOBA.4K.MIN_FLG == 1}class="lowest"{/if}{if $record.SOBA.4K.MAX_FLG == 1}class="highest"{/if}><a href="javascript:GoRstobi({$SrhType}, '{$KeyCd}', 8, {$type})">{$record.SOBA.4K.YACHIN_AVG}</a></td>
			{/if}
		</tr>
		{/foreach}
	</table>
</div>
<!-- /rentMarketTbl01 -->

{$hiddenTag}
</form>
